package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

public interface RoleService {
    /**
     * 角色的分页查询
     * @param queryPageBean
     * @return
     */
    PageResult pageQuery(QueryPageBean queryPageBean);

    /**
     * 添加角色
     * @param role
     * @param menus
     * @param permissions
     */
    void add(Role role, Integer[] menus, Integer[] permissions);

    boolean deleteByid(Integer id);
}
